<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>04_弹性布局入门</title>
    <style>
        .container{
            background-color: lightpink;
            width: 500px;
            overflow: hidden;
            display: flex;

            flex-direction: column;
            flex-direction: row-reverse;
            flex-direction: column-reverse;
            flex-direction: row;

            flex-wrap: nowrap;
            flex-wrap: wrap;

        }
        .item{
            background-color: lightskyblue;
            width: 100px;
            height: 100px;
            border:3px solid red;
            font-size: 45px;
            /*float: left;*/
        }
    </style>
</head>
<body>
<div class="container">
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
    <div class="item">5</div>
    <div class="item">6</div>
    <div class="item">7</div>
    <div class="item">8</div>
    <div class="item">9</div>
</div>
</body>
</html>